<?php

class ActivityPayAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * @param $userId
     * @param $activityId
     * @param $sign
     * @param $money
     * @param $platform
     * @param $reqTime
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId, $activityId, $sign, $money, $platform, $reqTime)
    {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            array(
                'status' => ActivityService::get()->activityPay($userId, $activityId, $sign, $money, $platform, $reqTime)
            )
        );
    }
}